#!/usr/bin/env python
def generate_primes(n, primes=[2, 3]):
    """generate n primes"""
    num = 4
    while len(primes) < n:
        for prime in primes:
            if num % prime == 0:
                break
        else:
            primes.append(num)
        num += 1
    return primes[:n]

def main():
    while True:
        n = raw_input()
        print generate_primes(int(n))



if __name__ == '__main__':
    main()


found = False
while condition:
    if something_occur():
        found = True
        break
    do_something_else();
if found:
    print 'found'

